package com.meituan.sdk.model.ddzh.technician.technicianTechinfoQuery;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 手艺人信息查询
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/technician/techInfo/query",
    businessId = 58,
    apiVersion = "10008",
    apiName = "technician_techinfo_query",
    needAuth = true
)
public class TechnicianTechinfoQueryRequest implements MeituanRequest<TechnicianTechinfoQueryResponse> {
    @SerializedName("pageNo")
    private Integer pageNo;
    @SerializedName("pageSize")
    private Integer pageSize;
    /**
    * <p data-diff-id="ct-diff-id-9d855cbd-8f63-4327-95ec-427e10aedab2">手艺人ID列表</p>
    */
    @SerializedName("technicianIds")
    private List<Integer> technicianIds;
    /**
    * <p data-diff-id="ct-diff-id-2776db6e-a02c-4236-b443-508b07f80adc">手艺人类型：2-在线，3-下线</p>
    */
    @NotNull(message = "displayType不能为空")
    @SerializedName("displayType")
    private Integer displayType;

    public Integer getPageNo() {
        return pageNo;
    }
    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }
    public Integer getPageSize() {
        return pageSize;
    }
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
    public List<Integer> getTechnicianIds() {
        return technicianIds;
    }
    public void setTechnicianIds(List<Integer> technicianIds) {
        this.technicianIds = technicianIds;
    }
    public Integer getDisplayType() {
        return displayType;
    }
    public void setDisplayType(Integer displayType) {
        this.displayType = displayType;
    }


    @Override
    public MeituanResponse<TechnicianTechinfoQueryResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<TechnicianTechinfoQueryResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "TechnicianTechinfoQueryRequest{" + "pageNo=" + pageNo + "," + "pageSize=" + pageSize + "," + "technicianIds=" + technicianIds + "," + "displayType=" + displayType + "}";
    }
}
